package net.hn.hnms.biz.project.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "project_budget", schema = "xmgl", catalog = "huaneng-manage")
public class ProjectBudget extends BaseModel implements Serializable {

    @ApiModelProperty(value = "id")
    @TableField(value = "project_budget_id", fill = FieldFill.INSERT)
    @TableId(type = IdType.ASSIGN_UUID)
    private String projectBudgetId;

    @ApiModelProperty(value = "项目ID")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String projectId;

    @ApiModelProperty(value = "项目预算编号")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String budgetCode;

    @ApiModelProperty(value = "项目预算主题(标题)")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String budgetTitle;

    @ApiModelProperty(value = "成立时间（预算时间）")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date budgetDate;

    @ApiModelProperty(value = "备注")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String remark;

}
